package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 护理项目Mapper接口
 */
@Mapper
public interface NursingProjectMapper {

    Page<NursingProjectVo> selectByPage(@Param("name") String name, @Param("status") Integer status);

    void insert(NursingProject nursingProject);

    NursingProjectVo selectById(Long id);

    void update(NursingProject nursingProject);

    void updateStatus(Long id, Integer status);

    void delete(Long id);

    List<NursingProjectVo> getAll();

    void updateCount(Long projectId);


    void updateCount1(Long projectId);
}